package com.hjm.project.qbMcc.qbMcc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjm.project.qbMcc.qbMcc.mapper.QbMccMapper;
import com.hjm.project.qbMcc.qbMcc.domain.QbMcc;
import com.hjm.project.qbMcc.qbMcc.service.IQbMccService;
import com.hjm.common.utils.text.Convert;

/**
 * 钱宝_mccService业务层处理
 * 
 * @author LOVE
 * @date 2020-11-28
 */
@Service
public class QbMccServiceImpl implements IQbMccService 
{
    @Autowired
    private QbMccMapper qbMccMapper;

    /**
     * 查询钱宝_mcc
     * 
     * @param id 钱宝_mccID
     * @return 钱宝_mcc
     */
    @Override
    public QbMcc selectQbMccById(Long id)
    {
        return qbMccMapper.selectQbMccById(id);
    }

    /**
     * 查询钱宝_mcc列表
     * 
     * @param qbMcc 钱宝_mcc
     * @return 钱宝_mcc
     */
    @Override
    public List<QbMcc> selectQbMccList(QbMcc qbMcc)
    {
        return qbMccMapper.selectQbMccList(qbMcc);
    }

    /**
     * 新增钱宝_mcc
     * 
     * @param qbMcc 钱宝_mcc
     * @return 结果
     */
    @Override
    public int insertQbMcc(QbMcc qbMcc)
    {
        return qbMccMapper.insertQbMcc(qbMcc);
    }

    /**
     * 修改钱宝_mcc
     * 
     * @param qbMcc 钱宝_mcc
     * @return 结果
     */
    @Override
    public int updateQbMcc(QbMcc qbMcc)
    {
        return qbMccMapper.updateQbMcc(qbMcc);
    }

    /**
     * 删除钱宝_mcc对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteQbMccByIds(String ids)
    {
        return qbMccMapper.deleteQbMccByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除钱宝_mcc信息
     * 
     * @param id 钱宝_mccID
     * @return 结果
     */
    @Override
    public int deleteQbMccById(Long id)
    {
        return qbMccMapper.deleteQbMccById(id);
    }
}
